self.onmessage = function(e){
	let str = e.data.str;
    let index = e.data.index;
	let splitText = e.data.splitText;
	let result=str.split(splitText).join(`<span class="searchWords">${splitText}</span>`).split("\n").map((text)=>{return `<p>${text}<p>`}).join("")
    postMessage({result:result,index:index})
}